#ifndef HTTP_SERVLET_CONTAINER_H_INCLUDED
#define HTTP_SERVLET_CONTAINER_H_INCLUDED

#include "http_servlet.h"
#include "http_request.h"
#include "http_response.h"
#include <list>

namespace vmon_web
{
	class WebSockHolder;

    class HttpServletContainer
    {
    public:
        HttpServletContainer();
        virtual ~HttpServletContainer();

        void addServlet(HttpServlet* servlet);
		virtual bool handleRequest(WebSockHolder* sockHolder);
        virtual bool handleRequest(HttpRequest& request, HttpResponse& response);
    protected:
        std::list<HttpServlet*> m_servlets;
    };
}

#endif // HTTP_SERVLET_CONTAINER_H_INCLUDED
